package com.grupit.module.user.web.gwt.shared.pluggablefeatures.request;

import java.util.List;

import com.google.web.bindery.requestfactory.shared.InstanceRequest;
import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;
import com.grupit.engine.pluggablefeatures.domain.Note;
import com.grupit.module.user.web.gwt.shared.pluggablefeatures.proxy.NoteProxy;

@Service(value = Note.class)
public interface NoteRequest extends RequestContext {
	Request<List<NoteProxy>> findAllNotesByUserId(String userId);

	InstanceRequest<NoteProxy, Void> save();

	InstanceRequest<NoteProxy, Void> delete();
}
